package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.MarketFootprint;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 用户管理-会员足迹
 * 创建日期: 2022/04/06 20:43
 *
 * @author HanWeiqi
 */
@NoArgsConstructor
@Data
public class FootprintListVO {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<MarketFootprint> list;

    public static FootprintListVO data(long total,Integer pages,Integer limit,Integer page,List list) {
        FootprintListVO footprintListVO = new FootprintListVO();
        footprintListVO.setTotal((int) total);
        footprintListVO.setPages(pages);
        footprintListVO.setPage(page);
        footprintListVO.setLimit(limit);
        footprintListVO.setList(list);
        return footprintListVO;
    }
}
